package com.xbongbong.saas.enums.dictionary;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 项目决策信息：项目立场
 *
 * @Author: hongxiao
 * @date: 2021-11-16 20:41
 */
@Getter
public enum DecisionInfoStanceEnum {
    // 支持
    SUPPORT("1", "enum.decisionInfoStance.name.support", "support", "#52C41A"),
    // 中立
    NEUTRAL("2", "enum.decisionInfoStance.name.neutral", "neutral", "#1677FF"),
    // 反对
    OBJECTION("3", "enum.decisionInfoStance.name.objection", "objection", "#FF3B30"),
    // 未知
    UNKNOWN("4", "enum.decisionInfoStance.name.unknown", "unknown", "#FF5100"),
    ;

    private String code;
    private String name;
    private String attr;
    private String color;

    DecisionInfoStanceEnum(String code, String name, String attr, String color) {
        this.code = code;
        this.name = name;
        this.attr = attr;
        this.color = color;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
